package cn.zhys513.scm.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.zhys513.scm.service.ITestService;

@Controller
public class HelloController {

    @Autowired
    ITestService iTestService;
    
	@RequestMapping(value={"/","/hello"})
	public String hello(Map<String,Object> map ) { 
	    String s = iTestService.test(); 
	    map.put("hello", s);
		System.out.println("hello:" + s); 
		return "hello";
	}
	 
	
}
